import Vue from 'vue';
import Vuex from 'vuex';
import state from './modules/state';
import mutations from './modules/mutations';
import * as actions from './modules/actions';
import * as getters from './modules/getters';
import layout from '@/components/layout/store';
import template from '@/scenes/template/store';
import templateDetails from '@/scenes/templateDetails/store';
import DRCbiz from '@/scenes/DRCbiz/store';

//挂载Vuex
Vue.use(Vuex);

const store = new Vuex.Store({
    state,
    actions,
    getters,
    mutations,
    modules: {
        layout:layout,
        DRCbiz: DRCbiz,
        template: template,
        templateDetails: templateDetails,
    },
});

export default store;